package com.enlighten.featureExtractor.distances;

import java.util.ArrayList;
import java.util.List;

import com.enlighten.featureExtractor.util.MathUtils;

public class MeanDsvStdDistance {

	private List<Double> data;
	private double dsvStd;
	private double mean;
	
	public MeanDsvStdDistance() {
		data = new ArrayList<Double>();
	}
	
	public void addData(Double distanceTo) {
		data.add(distanceTo);
	}

	public void calculate() {
		this.mean = MathUtils.mean(data);
		this.dsvStd = MathUtils.dsvStd(data);
	}

	public double getMean(){
		return mean;
	}
	
	public double getDsvStd(){
		return dsvStd;
	}
}
